package com.jjjjbababy.custom_view

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)


        val tv = findViewById<MagicNumberTextView>(R.id.tv)
        tv.number = 108
        tv.setOnClickListener {
            tv.likeOrNot()
        }
    }
}